package com.fa4j.common.base.exception;

import lombok.Getter;

/**
 * 业务异常
 */
@Getter
public class BusinessException extends BaseException {

    /**
     * 错误数据
     */
    private final Object errData;

    public BusinessException(BusinessErrorType errorType, String message, Object[] args, Throwable cause, Object errData) {
        super(errorType, message, args, cause);
        this.errData = errData;
    }


}
